package com.cool.dao;

import com.cool.entity.Reserve;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

@Repository
public interface ReserveMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Reserve record);

    int insertSelective(Reserve record);

    Reserve selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Reserve record);

    int updateByPrimaryKey(Reserve record);

    ArrayList<Reserve> isPayless(int uid);

    ArrayList<Reserve> isReserving(int uid);

    ArrayList<Reserve> selectByUid(int uid);
}